package com.mkyong;

import Beans.SemesterManagedBean;
import javax.faces.context.FacesContext;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.ValueChangeEvent;
import javax.faces.event.ValueChangeListener;
 
public class CurriculumValueListener implements ValueChangeListener{

	@Override
	public void processValueChange(ValueChangeEvent event)
			throws AbortProcessingException {
		
		//access country bean directly
		SemesterManagedBean bean = (SemesterManagedBean) FacesContext.getCurrentInstance().
			getExternalContext().getSessionMap().get("curriculum");

		//bean.setSelectedSemester(event.getNewValue().toString());
		
	}
	
	
}